import numpy as np
import matplotlib.pyplot as plt
import matplotlib.mlab as mlab

# read CSV as a numpy array
data = mlab.csv2rec('C:/Users/Navin/processor1.csv')

# print CSV file headers
print (data.dtype.names)

# load collumns as vectors
#data_x = data['position']
#data_y = data['value']

# plot raw data
plt.plot(data)

# fit data with a polynomial of degree 1: ax+b=0




plt.show()